package com.ctsi.security;

import com.ctsi.security.domain.UserDataObject;

import java.util.List;
import java.util.Map;


public interface ResourceServiceIn {
	/**
	 * 插入userDataObject
	 * @param userDataObject
	 */
	public void insertUserDataObject(UserDataObject userDataObject);
	
	/**
	 * 删除userDataObjectId
	 * @param userDataObject
	 */
	public void removeUserDataObject(UserDataObject userDataObject);
	/**
	 * 更新userDataObject
	 * @param userDataObject
	 */
	public void updateUserDataObject(UserDataObject userDataObject);
	/**
	 * 根据Id查找userDataObject
	 * @param id
	 * @return
	 */
	public UserDataObject findUserDataObjectById(String id);
	/**
	 * 获得用户在资源类型resType上对资源resId的所有操作
	 * @param userLogin
	 * @param resType
	 * @param resId
	 * @return
	 */
	public List<String> getActions(String userLogin, String resType, String resId);
	/**
	 * 获得用户在资源类型resType上的所有userDataObject
	 * @param userLogin
	 * @param resType
	 * @return
	 */
	public List<UserDataObject> getUserDataObjects(String userLogin, String resType);
	/**
	 * 根据Map的条件查询userDataObject
	 * @param params
	 * @return
	 */
	public List<UserDataObject> findUserDataObjectByMap(Map<String, Object> params);
}
